package com.project.common.data;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

public interface Persistence<K extends Serializable> extends Serializable {
    /**
     * 获取持久化对象的主键
     */
    @JsonIgnore
    K getKey();
}
